Populate the Stream object with the decoded contents of the file. Note you can assign Stream first with your own object, if you want to store the result in a file. Note that nothing is said here about character set; you data are treated as binary. If you supply a stream that's attached to a file, you can specify the character set when you open the file. Otherwise, if you need to read the contents as character data, see StreamToText function (not method!). If you supply a stream, it will be truncated. |